package Day12.成员变量;

import java.util.Scanner;

/**
 * @author HYHwtx
 * @version 1.0
 * @date 2022/2/18 17:45
 */
public class Test01 {
    public static void main(String[] args) {
        Scanner in= new Scanner(System.in);
        System.out.println("请输入您的数：");
        int i = in.nextInt();//读取数据

        int j = FeibO(i);
        System.out.println(j);
    }
    public static int FeibO(int n) {
        if (n == 1 || n == 2) {
            return 1;
        }
        return FeibO(n - 1) + FeibO(n - 2);
    }
}
